<div class="dux-tip dux-tip-bg dux-box uk-clearfix uk-margin-remove-top">
    <div class="tip-header {$info.status_data.color}">
        <h1><i class="fa fa-{$info.status_data.icon} {$info.status_data.color}"></i>{$info.status_data.title}</h1>
        <p>{$info.status_data.tip}</p>
    </div>
</div>

<!--if{$info.status == 2 && empty($info.delivery_name) && empty($info.delivery_no)}-->
<div class="dux-box">
    <div class="box-header box-header-color ">
        <div class="uk-text-default">
        请将商品退货至以下地址
        </div>
    </div>
    <div class="box-content">
        {$receiveInfo.name} {$receiveInfo.tel}
        <p>{$receiveInfo.address}</p>
    </div>
</div>
<form action="{url('delivery')}" class="dux-form uk-form  " data-dux="form-bind" data-advanced="false" method="post">
    <div class="uk-input-group">
        <label class="uk-input-group-label">退货快递</label>
        <input class="uk-form-field" type=text name="delivery_name" placeholder="请填写退货快递公司">
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">快递单号</label>
        <input class="uk-form-field" type=text name="delivery_no" placeholder="请填写退货快递单号">
    </div>
    <div class="uk-padding-small">
        <input type="hidden" name="refund_no" value="{$info.refund_no}">
        <button class="uk-button uk-button-primary uk-button-block" type="submit">提交退货信息</button>
    </div>
</form>
<!--{/if}-->

<div class="dux-form uk-form  ">
    <div class="uk-input-group">
        <label class="uk-input-group-label">申请单号</label>
        <div class="uk-form-controls uk-form-controls-text">
            {$info.refund_no}
        </div>
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">申请时间</label>
        <div class="uk-form-controls uk-form-controls-text">
            {date('Y-m-d H:i:s', $info.create_time)}
        </div>
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">退货原因</label>
        <div class="uk-form-controls uk-form-controls-text">
            {$info.cause}
        </div>
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">退款金额</label>
        <div class="uk-form-controls-text uk-text-danger">
            ￥{$info.price}
        </div>
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">退款运费</label>
        <div class="uk-form-controls-text uk-text-danger">
            ￥{$info.delivery_price}
        </div>
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">退款描述</label>
        <div class="uk-form-controls uk-form-controls-text">
            {$info.content ? $info.content : '无'}
        </div>
    </div>
    <!--if{$info.images}-->
    <div class="uk-input-group">
        <label class="uk-input-group-label">凭证</label>
        <div class="uk-form-controls uk-form-controls-text">
            <ul class="uk-grid uk-grid-small" uk-lightbox="animation: slide">
                <!--loop{$info.images as $vo}-->
                <li>
                    <a href="{$vo}"><img src="{$vo}"></a>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
    </div>
    <!--{/if}-->

    <!--if{$info.delivery_name && $info.delivery_no}-->
    <div class="uk-input-group">
        <label class="uk-input-group-label">退货快递</label>
        <div class="uk-form-controls uk-form-controls-text">
            {$info.delivery_name}
        </div>
    </div>
    <div class="uk-input-group">
        <label class="uk-input-group-label">快递单号</label>
        <div class="uk-form-controls uk-form-controls-text">
            {$info.delivery_no}
        </div>
    </div>
    <!--{/if}-->
    <!--if{$info.process_time}-->
    <div class="uk-input-group">
        <label class="uk-input-group-label">处理时间</label>
        <div class="uk-form-controls uk-form-controls-text">
            {date('Y-m-d H:i:s', $info.process_time)}
        </div>
    </div>
    <!--{/if}-->
    <!--if{$info.process_remark}-->
    <div class="uk-input-group">
        <label class="uk-input-group-label">处理备注</label>
        <div class="uk-form-controls uk-form-controls-text">
            {$info.process_remark}
        </div>
    </div>
    <!--{/if}-->
</div>
<!--if{$info.status == 1}-->
<div class="uk-padding-small">
    <a href="javascript:;" data-dux="dialog-ajaxConfirm"
       data-url="{url('cancel', ['refund_no' => $info.refund_no])}" data-title="确认要取消退款申请?"
       class="uk-button uk-button-primary uk-button-block">取消申请</a>
</div>
<!--{/if}-->